//Accepted
#include <vector>
#include <set>
#include <algorithm>
#include <string>
#include <cmath>
#include <queue>
#include <map>
#include <iostream>
#include <list>
#include <deque>
#include <cstdio>
#include <cstring>
#include <cstdlib>
using namespace std;


int main (){
	//freopen("in.txt", "r", stdin);//freopen("out.txt", "w", stdout);
	int n, i, sum;
	string s;
	map<string,bool> m;
	
	
	scanf("%d\n", &n);
	for(sum=i=0;i<n;++i){
		getline(cin,s);
		if(!m[s]){
			m[s]=1;
			++sum;
		}
	}
	
	printf("%d", sum);
	return 0;
}
